//
//  LeBehaviour.cpp
//  Leste
//
//  Created by 王乐 on 2022/1/26.
//

#include "LeBehaviour.h"
#include "LeGameObject.h"
#include "LeRenderer.h"

void LeBehaviour::initBehaviour(LeRigidBody* pRigidBody, LeRenderer* pRenderer, LeParticleSystem* pParicleSystem, LeGameObject* pGameObject)
{
    m_pTransform = &pGameObject->m_Transform;
    m_pRigidBody = pRigidBody;
    m_pRenderer = pRenderer;
    m_pParticleSystem = pParicleSystem;
    m_pGameObject = pGameObject;
}

void LeBehaviour::Awake() {
    
}

void LeBehaviour::Start() {
    
}

void LeBehaviour::PreRender() {
    
}

void LeBehaviour::Update() { 
    
}

void LeBehaviour::FixedUpdate() { 
    
}

void LeBehaviour::Render() {
    
}

void LeBehaviour::PostRender() {
    
}

void LeBehaviour::OnContactBegin(LeGameObject* other) {
    
}

void LeBehaviour::OnContactEnd(LeGameObject* other) {
    
}

